import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import im from './modules/im'
Vue.use(Vuex)

let storeConfig = {
  state: { glo_demo: 'global_Store' },
  mutations: {
    setSearch(state, val) {
      state.search = val
    },
  },
  modules: { app, im },
  getters,
}

export default new Vuex.Store(storeConfig)
